package com.ruoyi.project.modules.userDataAuth.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 用户数据权限对象 t_user_data_auth
 * 
 * @author smallrain
 * @date 2021-11-09
 */
public class UserDataAuth extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户名称 */
    private String username;

    /** 关联对象类型（1业务需求 2用况 3页面 4表对象 5BFF接口），6Dubbo接口 */
    @Excel(name = "关联对象类型", readConverterExp = "1=业务需求,2=用况,3=页面,4=表对象,5=bff接口,6=dubbo接口")
    private String objectType;

    /** 关联对象ID */
    @Excel(name = "关联对象ID")
    private Long objectId;

    /** 角色ID */
    private Long roleId;

    /** 角色名称，多个逗号分隔 */
    private String roleName;

    /** 关联对象名称 */
    private String name;

    /** 关联对象描述 */
    private String description;

    /** 关联对象完成状态 */
    private Integer objectStatus;

    private List<Long> objectIds;

    public List<Long> getObjectIds() {
        return objectIds;
    }

    public void setObjectIds(List<Long> objectIds) {
        this.objectIds = objectIds;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getObjectType() {
        return objectType;
    }

    public void setObjectType(String objectType) {
        this.objectType = objectType;
    }

    public Long getObjectId() {
        return objectId;
    }

    public void setObjectId(Long objectId) {
        this.objectId = objectId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getObjectStatus() {
        return objectStatus;
    }

    public void setObjectStatus(Integer objectStatus) {
        this.objectStatus = objectStatus;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("objectType", getObjectType())
            .append("objectId", getObjectId())
            .toString();
    }
}
